﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Web;
using OF.Component.Model;
using OF.Utility;

namespace User.Api.Models
{
    /// <summary>
    /// 身份证获取接口 响应结果对象
    /// </summary>
    public class ResIDCardGet:IDCardInfo
    {
        /// <summary>
        /// 性别文本显示
        /// </summary>
        [DataMember]
        public string SexText => Sex.Switch
            (
                new[] {1, 2},
                new[] {"男", "女"},
                ""
            );
    }
}